package com.example.entity;

public class President extends Account {
    public President(Account account) {
        this.setId(account.getId());
        this.setUsername(account.getUsername());
        this.setPassword(account.getPassword());
        this.setRole(account.getRole());
        this.setName(account.getName());
        this.setNewPassword(account.getNewPassword());
        this.setAvatar(account.getAvatar());
    }
    private String sex;
    private String major;
    private String contactInfo;
    private String descr;

    // Added phone and email fields
    private String phone;
    private String email;
    private String clubNames; // 新增字段：社团名称（可能多个，用逗号等分隔）

    private Integer clubId;


    public President() {
        // 必须要有无参构造函数
    }


    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getContactInfo() {
        return contactInfo;
    }

    public void setContactInfo(String contactInfo) {
        this.contactInfo = contactInfo;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    // Getter and Setter for phone
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    // Getter and Setter for email
    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    // 新增clubNames的getter和setter
    public String getClubNames() {
        return clubNames;
    }

    public void setClubNames(String clubNames) {
        this.clubNames = clubNames;
    }

    public Integer getClubId() {
        return clubId;
    }

    public void setClubId(Integer clubId) {
        this.clubId = clubId;
    }
}
